package com.ruoyi.disCustomer.service;

import com.ruoyi.disCustomer.domain.TCustomerDisRecord;
import com.ruoyi.disCustomer.domain.vo.TCustomerDisRecordVo;
import com.ruoyi.disCustomer.domain.bo.TCustomerDisRecordBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 客户分配记录Service接口
 *
 * @author ruoyi
 * @date 2023-08-20
 */
public interface ITCustomerDisRecordService {

    /**
     * 查询客户分配记录
     */
    TCustomerDisRecordVo queryById(Long id);

    /**
     * 查询客户分配记录列表
     */
    TableDataInfo<TCustomerDisRecordVo> queryPageList(TCustomerDisRecordBo bo, PageQuery pageQuery);

    /**
     * 查询客户分配记录列表
     */
    List<TCustomerDisRecordVo> queryList(TCustomerDisRecordBo bo);

    /**
     * 新增客户分配记录
     */
    Boolean insertByBo(TCustomerDisRecordBo bo);

    /**
     * 修改客户分配记录
     */
    Boolean updateByBo(TCustomerDisRecordBo bo);

    /**
     * 校验并批量删除客户分配记录信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
